package net.wanho.controller;

import lombok.RequiredArgsConstructor;
import net.wanho.service.PlaceService;
import net.wanho.vo.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/place")
@RequiredArgsConstructor
public class PlaceController {
    private final PlaceService placeService;

    /**
     *  所有产地列表
     */
    @GetMapping("/place-list")
    public AjaxResult placeList() {
        return AjaxResult.success(placeService.list());
    }
}
